package com.chen.springcloud;

import com.chen.common.config.MyRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @ClassName
 * @Description:    Ribbon 和 Eureka 整合之后客户端可以直接调用，不用关心IP地址和端口号
 * @Author:
 * @Date: Created in 22:33 2022/5/22
 */
@SpringBootApplication
@EnableEurekaClient
//在微服务启动的时候就能去加载我们自定义的Ribbon类
@RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPT",configuration = MyRule.class)
public class DeptConsumerApplication {
    public static void main(String[] args){
        SpringApplication.run(DeptConsumerApplication.class,args);
    }
}
